package com.rephilo.zk;

import com.zaxxer.hikari.HikariDataSource;

public class DataSourceUtils {
    private static HikariDataSource dataSource;

    public static HikariDataSource getDataSource() {
        return dataSource;
    }

    public static void setDataSource(String url) {
        HikariDataSource ds = new HikariDataSource();
        ds.setJdbcUrl(url);
        ds.setUsername("root");
        ds.setPassword("123456");
        dataSource = ds;
        System.out.println("database changed to: " + url);
    }
}
